import axios from '@/utils/downLoad'
import moment from "moment";

export function downLoadEmpWage(params) {
  return axios({
    url: '/EmpWage/downLoad',
    method: 'post',
    data: params,
    excelName:"工资结算"
  })
}

export function downLoadEmpScoreTotal(params) {
  return axios({
    url: '/EmpScore/total/downLoad',
    method: 'post',
    data: params,
    excelName:"总分结算"
  })
}


export function downLoadEmpScore(params) {
  return axios({
    url: '/EmpScore/downLoad',
    method: 'post',
    data: params,
    excelName:"评分结算"
  })
}


export function downLoadEmpPiece(params) {
  return axios({
    url: '/EmpPiece/downLoad',
    method: 'post',
    data: params,
    excelName:"计件结算"
  })
}

export function downLoadEmpKpi(params) {
  return axios({
    url: '/EmpKpi/downLoad',
    method: 'post',
    data: params,
    excelName:"提成结算"
  })
}

export function downLoadEmpOkr(params) {
  return axios({
    url: '/EmpOkr/downLoad',
    method: 'post',
    data: params,
    excelName:"Okr结算"
  })
}

export function downLoadEmployeePosition(params) {
  return axios({
    url: '/EmployeePosition/downLoad',
    method: 'post',
    data: params,
    excelName:"员工岗位"
  })
}

export function downLoadEmpReward(params) {
  return axios({
    url: '/EmpReward/downLoad',
    method: 'post',
    data: params,
    excelName:"员工特殊绩效"
  })
}

export function downLoadEmpPartTimeReward(params) {
  return axios({
    url: '/EmpPartTimeReward/downLoad',
    method: 'post',
    data: params,
    excelName:"员工兼职绩效"
  })
}


export function downLoadProgress(params) {
  return axios({
    url: '/Progress/downLoad',
    method: 'post',
    data: params,
    excelName:"未完成名单导出"
  })
}

export function downLoadDeptPerformance(params) {
  return axios({
    url: '/deptPerformance/downLoad',
    method: 'post',
    data: params,
    excelName:"部门业绩转得分"
  })
}


export function downLoadPerformanceRule(params) {
  return axios({
    url: '/performanceRule/downLoad',
    method: 'post',
    data: params,
    excelName:"业绩规则导出"
  })
}


export function downLoadPositionPerformance(params) {
  return axios({
    url: '/positionPerformance/downLoad',
    method: 'post',
    data: params,
    excelName:"岗位业绩导出"
  })
}

export function downPerson(params) {
  return axios({
    url: '/Progress/test',
    method: 'post',
    data: params,
	excelName:"超时人员名单 "
  })
}

export function downLoadCoefficient(params) {
  return axios({
    url: '/EmpCoefficient/downLoad',
    method: 'post',
    data: params,
    excelName:"员工绩效系数导出"
  })
}
